<#-- 导入变量定义文件 -->
<#include "../template/include/assign.ftl">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>客户积分管理</title>
<#-- 导入静态资源文件 -->
<#include "../template/include/source.ftl">
<link href="${web_static}/admin/css/list.css" rel="stylesheet" type="text/css" />
<style type="text/css">
	.page{
		float:right;
		padding-top: 15px;
		margin-right: 15px;
	}
	
</style>
</head>
<#include "../template/template_listPage.ftl">
<script type="text/javascript">
	$().ready( function() {
		<#if actionErrors??&&(actionErrors?size > 0)>
			$.dialog({type: "warn", content: "<#list errorMessages as list>${list}<br></#list>",
			 modal: true, autoCloseTime: 3000});
		</#if>
	
	}); 
  
</script>
</head>
<body class="list">
	<div class="body">
		<div class="listBar">
			<h1><span class="icon">&nbsp;</span>客户积分管理&nbsp;<span class="pageInfo"></span></h1>
		</div>
		<@pageList page=(scorePage!) id="listForm" action="${web_base}/go/customer_score!list.htm" query="customerScoreInfoQuery" isEmpty=true>
		   <div class="operateBar">
		            客户编号:<input type="text" id="customerId" name="customerScoreInfoQuery.customerId" value="${customerScoreInfoQuery.customerId!}"> 
		           积分来源:
				<select name="customerScoreInfoQuery.scoreSource" id="scoreSource">
				    <option value="" >请选择</option>
				    <option value="1" <#if customerScoreInfoQuery.scoreSource?? && customerScoreInfoQuery.scoreSource=="1">selected="selected"</#if> >邀请</option>
					<option value="2" <#if customerScoreInfoQuery.scoreSource?? && customerScoreInfoQuery.scoreSource=="2">selected="selected"</#if> >购买</option>
				</select>
			<input type="hidden" name="customerScoreInfoQuery.orderBy" id="orderBy" value="${customerScoreInfoQuery.orderBy}" />
				<input type="hidden" name="customerScoreInfoQuery.orderType" id="order" value="${customerScoreInfoQuery.orderType}" />
			<input type="submit" id="searchButton3" class="searchButton" value="" />
			</div>
			<table class="listTable">
				<tr>
					<th width="100">
						<span class="" >客户编号</span> 
					</th>
					<th>
						<span class="" >积分来源</span>
					</th>
					<th>
						<span class="" >积分值</span>
					</th>
					<th>
						<span class="">积分时间</span>
					</th>
				</tr>
				<#if  scorePage??&&scorePage.list??&&(scorePage.list?size gt 0) >			
				<#list scorePage.list as obj>
					<tr>
						<td width="100">
							${(obj.customerId)!}
						</td>
						<td>
							<#if obj.scoreSource?? && obj.scoreSource=="1">
								邀请
							<#elseif obj.scoreSource?? && obj.scoreSource=="2">
								购买
							</#if>
						</td>
						<td>
						    ${(obj.score)!}
						</td>
						
						<td>
							<#if obj.scoreTime?exists&&obj.scoreTime?is_date>
								${((obj.scoreTime)!)?string("yyyy-MM-dd HH:mm:ss")}
							</#if>
						</td>
					</tr>
				</#list>
				<#else>
				    <tr><td colspan="11">
					<div class="noRecord">
						没有找到任何记录!
					</div>	
					</td>
					</tr>
				</#if>	
			</table>
 
		</@pageList>
	</div>
	
</body>
</html>